import axios from "axios";
const http = {
  get(url, parms) {
    return new Promise((resolve) => {
      return axios
        .get(url, {
          parms: parms,
        })
        .then((response) => {
          if (response.status == 200) {
            resolve(response);
          }
        })
        .catch((error) => {
          console.log(error);
        });
    });
  },
};
export default http;
